import request from '../../utils/request'

// 登录
export const login = (data) => {
  return request('/sys_mgr/sign_in', 'post', data)
}

// 登出
export const logout = () => {
  return request('/sys_mgr/sign_out', 'post')
}

// 刷新TOKEN
export const reFreshToken = () => {
  return request('/sys_mgr/refresh_token', 'get')
}

// 5-20
export const updateCAMP = (data, id) => {
  return request('/ameco/updateCAMP?id=' + id, 'post', data)
}

export const updateMTOPOne = (data, id) => {
  return request('/ameco/updateMTOPExcelOne?id=' + id, 'post', data)
}

export const updateMTOPTwo = (data, id) => {
  return request('/ameco/updateMTOPExcelTwo?id=' + id, 'post', data)
}

export const updateWorkHourSchemeOne = (data, id) => {
  return request('/ameco/updateWorkHourSchemeOne?id=' + id, 'post', data)
}

export const updateWorkHourSchemeTwo = (data, id) => {
  return request('/ameco/updateWorkHourSchemeTwo?id=' + id, 'post', data)
}

export const timeUpload = (data, id) => {
  return request('/ameco/timeUpload?id=' + id, 'post', data)
}

export const campUpload = (data, id) => {
  return request('/ameco/campUpload?id=' + id, 'post', data)
}

export const mtopUpload = (data, id) => {
  return request('/ameco/mtopUpload?id=' + id, 'post', data)
}

export const fileExist = (id) => {
  return request('/ameco/fileExist?id=' + id, 'post')
}